package com.ipartek.pruebas.capitulo12;

public class PuntoP3 {

		
		//atributos
		int x,y;

		//constructor
		public PuntoP3() {
			super();

			this. x=1;
			this. y=1; 
		}

		public PuntoP3(int x, int y) {
			super();
			this.x = x;
			this.y = y;
		}

		//metodos
		public int getX() {
			return x;
		}

		public void setX(int x) {
			this.x = x;
		}

		public int getY() {
			return y;
		}

		public void setY(int y) {
			this.y = y;
		}

		////Redefinir el metodo
		@Override
		public String toString() {
			return "Punto [x=" + x + ", y=" + y + "]";
		}
}
